<?php
require_once 'includes/funciones.php';
conexion();

$var=sqlint($_GET['var']);
$result=mysql_query("SELECT * FROM abogacia.subjects as s WHERE s.id_categories=$var");
 while($rowconcla=mysql_fetch_array($result))
                    {
                       echo '<option value="'.$rowconcla['id'].'">'.$rowconcla['description'].' </option>';
						 echo ' '.$rowconcla['id'].' '.$rowconcla['description'].' ';
                    }
?>